<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['category']) && (($_SESSION['category']&1<<1) == 0))) {
	$this->_redirect(isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND);
}
$intParentId				= $objRequest->getParam('parentid', 0);
$intType					= $objRequest->getParam('type', 0);
$this->view->intParentId 	= $intParentId;
$this->view->intType 		= $intType;
if($intParentId > 0) {
	$objCategory			= new Category();
	$this->view->row		= $objCategory->get($intParentId);
}